package com.yxzr.youyou;

import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.View;
import android.widget.RelativeLayout;

import com.yxzr.youyou.base.BaseActivity;

public class MyMessageActivity extends BaseActivity {
    private RelativeLayout mymessage_rel_system,mymessage_rel_user;
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_mymessage);
        setTitleWithBack();
        initView();
    }

    private void initView() {
        mymessage_rel_system = findViewById(R.id.mymessage_rel_system);
        mymessage_rel_user = findViewById(R.id.mymessage_rel_user);

        mymessage_rel_system.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent intent = new Intent(MyMessageActivity.this,SystemMessageActivity.class);
                intent.putExtra("type","0");
                startActivity(intent);
            }
        });
        mymessage_rel_user.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent intent = new Intent(MyMessageActivity.this,SystemMessageActivity.class);
                intent.putExtra("type","1");
                startActivity(intent);
            }
        });
    }
}
